package com.google.ads;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import com.google.ads.b.r;
import com.google.ads.b.s;
import com.google.ads.util.ae;
import com.google.ads.util.d;

public class b
{
  public void a(r paramr, s params)
  {
    Activity localActivity;
    synchronized (AdActivity.d())
    {
      if (AdActivity.f() == null)
        AdActivity.b(paramr);
      while (AdActivity.f() == paramr)
      {
        localActivity = (Activity)paramr.g().e.a();
        if (localActivity != null)
          break;
        d.e("activity was null while launching an AdActivity.");
        return;
      }
      d.b("Tried to launch a new AdActivity with a different AdManager.");
      return;
    }
    Intent localIntent = new Intent(localActivity.getApplicationContext(), AdActivity.class);
    localIntent.putExtra("com.google.ads.AdOpener", params.a());
    try
    {
      d.a("Launching AdActivity.");
      localActivity.startActivity(localIntent);
      return;
    }
    catch (ActivityNotFoundException localActivityNotFoundException)
    {
      d.b("Activity not found.", localActivityNotFoundException);
    }
  }

  public boolean a()
  {
    while (true)
    {
      synchronized (AdActivity.d())
      {
        if (AdActivity.e() != null)
        {
          bool = true;
          return bool;
        }
      }
      boolean bool = false;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.google.ads.b
 * JD-Core Version:    0.6.2
 */